package com.Test.AnimalTest1;

public class Test {
    public static void main(String[] args) {
        Frog f = new Frog("青蛙",2);
        Rabbit r = new Rabbit("<兔子",2);
        Dog d = new Dog("老狗",2);
        d.swim();
        d.eat();
        r.eat();
        f.swim();
        f.eat();
    }
}
